import word2vec
# word2vec.word2vec('corpusSegDone.txt','corpusWord2Vec.bin',size=300,verbose=True)
model = word2vec.load('corpusWord2Vec.bin')
# print(model.vectors)
index = 1000
print(model.vocab[index])  # 水源地
print(' ')
indexes = model.cosine(u'西藏')
for i in indexes[0]:
    print(model.vocab[i])